package br.edu.fanor.esfinge.dao.impl;

import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;

import br.edu.fanor.esfinge.dao.VerResumosDAO;
import br.edu.fanor.esfinge.entity.VerResumos;

@Stateless(mappedName="ejb/VerResumosDao")
public class VerResusmos implements VerResumosDAO{
	
	@PersistenceContext
	private EntityManager em;
	
	@Override
	public VerResumos inserir(VerResumos verResumos) {
		em.persist(verResumos);
		return verResumos;
	}

	@Override
	public VerResumos buscarPorId(Long id) {
		
		return em.find(VerResumos.class, id);
	}

	@Override
	public void remover(VerResumos verResumos) {
		em.remove(verResumos);
		
	}

}
